package org.example.erat.model.importing;

public class ImportStrategyFactory {
    public static ImportStrategy createStrategy(String format) {
        return switch (format.toLowerCase()) {
            case "excel" -> new ExcelImportStrategy();
            case "csv" -> new CsvImportStrategy();
            default -> throw new IllegalArgumentException("不支持的导入格式: " + format);
        };
    }
}    